Skip to content

Conversation

davegudge
Copy link

The configured pg_port was not supplied to the psql -c commands, thus all commands were executed against the default port of 5432.

The configured `pg_port` was not supplied to the `psql -c` commands,
thus all commands were executed against the default port of 5432.
@davegudge
Copy link
Author

Hi @bruno- @NorseGaud,

I can confirm this is still an issue. I've had to update my Gemfile to:

gem "capistrano-postgresql", require: false, github: "skillstream/capistrano-postgresql"

to ensure the commands are run against the non-default port I have set in the deploy.rb file:

set :database_port, 5413
set :pg_port, -> { fetch :database_port }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant